package com.weilive.api;

import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Controller;

import com.weilive.core.facade.Bootstrap;
import com.weilive.core.netty.http.HttpServletManager;
import com.weilive.core.protocol.json.JsonCodec;

@Controller
public class ServerBootstrap extends Bootstrap {

	@Override
	public void loadBySpring(ApplicationContext context) {
		// 加载协议解析器
		JsonCodec.loadBySpring(context);
		// ProtobufCodec.loadBySpring(context);
		HttpServletManager.loadBySpring(context);
		// 加载资源管理器
		ResourceManager.loadBySpring(context);
	}
}
